Optimal. Leaf size=603 \[ \left (a^2 \left (A c^3-c^3 C-3 B c^2 d-3 A c d^2+3 c C d^2+B d^3\right )+b^2 \left (c^3 C+3 B c^2 d-3 c C d^2-B d^3-A \left (c^3-3 c d^2\right )\right )-2 a b \left ((A-C) d \left (3 c^2-d^2\right )+B \left (c^3-3 c d^2\right )\right )\right ) x+\frac {\left (2 a b \left (c^3 C+3 B c^2 d-3 c C d^2-B d^3-A \left (c^3-3 c d^2\right )\right )-a^2 \left ((A-C) d \left (3 c^2-d^2\right )+B \left (c^3-3 c d^2\right )\right )+b^2 \left ((A-C) d \left (3 c^2-d^2\right )+B \left (c^3-3 c d^2\right )\right )\right ) \log (\cos (e+f x))}{f}-\frac {d \left (2 a b \left (c^2 C+2 B c d-C d^2-A \left (c^2-d^2\right )\right )-a^2 \left (2 c (A-C) d+B \left (c^2-d^2\right )\right )+b^2 \left (2 c (A-C) d+B \left (c^2-d^2\right )\right )\right ) \tan (e+f x)}{f}+\frac {\left (2 a b (A c-c C-B d)+a^2 (B c+(A-C) d)-b^2 (B c+(A-C) d)\right ) (c+d \tan (e+f x))^2}{2 f}+\frac {\left (a^2 B-b^2 B+2 a b (A-C)\right ) (c+d \tan (e+f x))^3}{3 f}+\frac {\left (5 a^2 C d^2-6 a b d (c C-5 B d)+b^2 \left (c^2 C-3 B c d+15 (A-C) d^2\right )\right ) (c+d \tan (e+f x))^4}{60 d^3 f}-\frac {b (b c C-3 b B d-a C d) \tan (e+f x) (c+d \tan (e+f x))^4}{15 d^2 f}+\frac {C (a+b \tan (e+f x))^2 (c+d \tan (e+f x))^4}{6 d f} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 1.08, antiderivative size = 603, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 6, integrand size = 45, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.133, Rules used = {3728, 3718,
3711, 3609, 3606, 3556} \begin {gather*} -\frac {d \tan (e+f x) \left (-\left (a^2 \left (2 c d (A-C)+B \left (c^2-d^2\right )\right )\right )+2 a b \left (-A \left (c^2-d^2\right )+2 B c d+c^2 C-C d^2\right )+b^2 \left (2 c d (A-C)+B \left (c^2-d^2\right )\right )\right )}{f}+\frac {(c+d \tan (e+f x))^4 \left (5 a^2 C d^2-6 a b d (c C-5 B d)+b^2 \left (15 d^2 (A-C)-3 B c d+c^2 C\right )\right )}{60 d^3 f}+\frac {\log (\cos (e+f x)) \left (-\left (a^2 \left (d (A-C) \left (3 c^2-d^2\right )+B \left (c^3-3 c d^2\right )\right )\right )+2 a b \left (-A \left (c^3-3 c d^2\right )+3 B c^2 d-B d^3+c^3 C-3 c C d^2\right )+b^2 \left (d (A-C) \left (3 c^2-d^2\right )+B \left (c^3-3 c d^2\right )\right )\right )}{f}+x \left (a^2 \left (A c^3-3 A c d^2-3 B c^2 d+B d^3-c^3 C+3 c C d^2\right )-2 a b \left (d (A-C) \left (3 c^2-d^2\right )+B \left (c^3-3 c d^2\right )\right )+b^2 \left (-A \left (c^3-3 c d^2\right )+3 B c^2 d-B d^3+c^3 C-3 c C d^2\right )\right )+\frac {\left (a^2 B+2 a b (A-C)-b^2 B\right ) (c+d \tan (e+f x))^3}{3 f}+\frac {(c+d \tan (e+f x))^2 \left (a^2 (d (A-C)+B c)+2 a b (A c-B d-c C)-b^2 (d (A-C)+B c)\right )}{2 f}-\frac {b \tan (e+f x) (-a C d-3 b B d+b c C) (c+d \tan (e+f x))^4}{15 d^2 f}+\frac {C (a+b \tan (e+f x))^2 (c+d \tan (e+f x))^4}{6 d f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3556
Rule 3606
Rule 3609
Rule 3711
Rule 3718
Rule 3728
Rubi steps
\begin {align*} \int (a+b \tan (e+f x))^2 (c+d \tan (e+f x))^3 \left (A+B \tan (e+f x)+C \tan ^2(e+f x)\right ) \, dx &=\frac {C (a+b \tan (e+f x))^2 (c+d \tan (e+f x))^4}{6 d f}+\frac {\int (a+b \tan (e+f x)) (c+d \tan (e+f x))^3 \left (-2 (b c C-3 a A d+2 a C d)+6 (A b+a B-b C) d \tan (e+f x)-2 (b c C-3 b B d-a C d) \tan ^2(e+f x)\right ) \, dx}{6 d}\\ &=-\frac {b (b c C-3 b B d-a C d) \tan (e+f x) (c+d \tan (e+f x))^4}{15 d^2 f}+\frac {C (a+b \tan (e+f x))^2 (c+d \tan (e+f x))^4}{6 d f}-\frac {\int (c+d \tan (e+f x))^3 \left (2 \left (6 a b c C d-5 a^2 (3 A-2 C) d^2-b^2 c (c C-3 B d)\right )-30 \left (a^2 B-b^2 B+2 a b (A-C)\right ) d^2 \tan (e+f x)-2 \left (5 a^2 C d^2-6 a b d (c C-5 B d)+b^2 \left (c^2 C-3 B c d+15 (A-C) d^2\right )\right ) \tan ^2(e+f x)\right ) \, dx}{30 d^2}\\ &=\frac {\left (5 a^2 C d^2-6 a b d (c C-5 B d)+b^2 \left (c^2 C-3 B c d+15 (A-C) d^2\right )\right ) (c+d \tan (e+f x))^4}{60 d^3 f}-\frac {b (b c C-3 b B d-a C d) \tan (e+f x) (c+d \tan (e+f x))^4}{15 d^2 f}+\frac {C (a+b \tan (e+f x))^2 (c+d \tan (e+f x))^4}{6 d f}-\frac {\int (c+d \tan (e+f x))^3 \left (30 \left (2 a b B-a^2 (A-C)+b^2 (A-C)\right ) d^2-30 \left (a^2 B-b^2 B+2 a b (A-C)\right ) d^2 \tan (e+f x)\right ) \, dx}{30 d^2}\\ &=\frac {\left (a^2 B-b^2 B+2 a b (A-C)\right ) (c+d \tan (e+f x))^3}{3 f}+\frac {\left (5 a^2 C d^2-6 a b d (c C-5 B d)+b^2 \left (c^2 C-3 B c d+15 (A-C) d^2\right )\right ) (c+d \tan (e+f x))^4}{60 d^3 f}-\frac {b (b c C-3 b B d-a C d) \tan (e+f x) (c+d \tan (e+f x))^4}{15 d^2 f}+\frac {C (a+b \tan (e+f x))^2 (c+d \tan (e+f x))^4}{6 d f}-\frac {\int (c+d \tan (e+f x))^2 \left (-30 d^2 \left (a^2 (A c-c C-B d)-b^2 (A c-c C-B d)-2 a b (B c+(A-C) d)\right )-30 d^2 \left (2 a b (A c-c C-B d)+a^2 (B c+(A-C) d)-b^2 (B c+(A-C) d)\right ) \tan (e+f x)\right ) \, dx}{30 d^2}\\ &=\frac {\left (2 a b (A c-c C-B d)+a^2 (B c+(A-C) d)-b^2 (B c+(A-C) d)\right ) (c+d \tan (e+f x))^2}{2 f}+\frac {\left (a^2 B-b^2 B+2 a b (A-C)\right ) (c+d \tan (e+f x))^3}{3 f}+\frac {\left (5 a^2 C d^2-6 a b d (c C-5 B d)+b^2 \left (c^2 C-3 B c d+15 (A-C) d^2\right )\right ) (c+d \tan (e+f x))^4}{60 d^3 f}-\frac {b (b c C-3 b B d-a C d) \tan (e+f x) (c+d \tan (e+f x))^4}{15 d^2 f}+\frac {C (a+b \tan (e+f x))^2 (c+d \tan (e+f x))^4}{6 d f}-\frac {\int (c+d \tan (e+f x)) \left (30 d^2 \left (a^2 \left (c^2 C+2 B c d-C d^2-A \left (c^2-d^2\right )\right )-b^2 \left (c^2 C+2 B c d-C d^2-A \left (c^2-d^2\right )\right )+2 a b \left (2 c (A-C) d+B \left (c^2-d^2\right )\right )\right )+30 d^2 \left (2 a b \left (c^2 C+2 B c d-C d^2-A \left (c^2-d^2\right )\right )-a^2 \left (2 c (A-C) d+B \left (c^2-d^2\right )\right )+b^2 \left (2 c (A-C) d+B \left (c^2-d^2\right )\right )\right ) \tan (e+f x)\right ) \, dx}{30 d^2}\\ &=\left (a^2 \left (A c^3-c^3 C-3 B c^2 d-3 A c d^2+3 c C d^2+B d^3\right )+b^2 \left (c^3 C+3 B c^2 d-3 c C d^2-B d^3-A \left (c^3-3 c d^2\right )\right )-2 a b \left ((A-C) d \left (3 c^2-d^2\right )+B \left (c^3-3 c d^2\right )\right )\right ) x-\frac {d \left (2 a b \left (c^2 C+2 B c d-C d^2-A \left (c^2-d^2\right )\right )-a^2 \left (2 c (A-C) d+B \left (c^2-d^2\right )\right )+b^2 \left (2 c (A-C) d+B \left (c^2-d^2\right )\right )\right ) \tan (e+f x)}{f}+\frac {\left (2 a b (A c-c C-B d)+a^2 (B c+(A-C) d)-b^2 (B c+(A-C) d)\right ) (c+d \tan (e+f x))^2}{2 f}+\frac {\left (a^2 B-b^2 B+2 a b (A-C)\right ) (c+d \tan (e+f x))^3}{3 f}+\frac {\left (5 a^2 C d^2-6 a b d (c C-5 B d)+b^2 \left (c^2 C-3 B c d+15 (A-C) d^2\right )\right ) (c+d \tan (e+f x))^4}{60 d^3 f}-\frac {b (b c C-3 b B d-a C d) \tan (e+f x) (c+d \tan (e+f x))^4}{15 d^2 f}+\frac {C (a+b \tan (e+f x))^2 (c+d \tan (e+f x))^4}{6 d f}-\frac {\left (30 d^3 \left (a^2 \left (c^2 C+2 B c d-C d^2-A \left (c^2-d^2\right )\right )-b^2 \left (c^2 C+2 B c d-C d^2-A \left (c^2-d^2\right )\right )+2 a b \left (2 c (A-C) d+B \left (c^2-d^2\right )\right )\right )+30 c d^2 \left (2 a b \left (c^2 C+2 B c d-C d^2-A \left (c^2-d^2\right )\right )-a^2 \left (2 c (A-C) d+B \left (c^2-d^2\right )\right )+b^2 \left (2 c (A-C) d+B \left (c^2-d^2\right )\right )\right )\right ) \int \tan (e+f x) \, dx}{30 d^2}\\ &=\left (a^2 \left (A c^3-c^3 C-3 B c^2 d-3 A c d^2+3 c C d^2+B d^3\right )+b^2 \left (c^3 C+3 B c^2 d-3 c C d^2-B d^3-A \left (c^3-3 c d^2\right )\right )-2 a b \left ((A-C) d \left (3 c^2-d^2\right )+B \left (c^3-3 c d^2\right )\right )\right ) x+\frac {\left (2 a b \left (c^3 C+3 B c^2 d-3 c C d^2-B d^3-A \left (c^3-3 c d^2\right )\right )-a^2 \left ((A-C) d \left (3 c^2-d^2\right )+B \left (c^3-3 c d^2\right )\right )+b^2 \left ((A-C) d \left (3 c^2-d^2\right )+B \left (c^3-3 c d^2\right )\right )\right ) \log (\cos (e+f x))}{f}-\frac {d \left (2 a b \left (c^2 C+2 B c d-C d^2-A \left (c^2-d^2\right )\right )-a^2 \left (2 c (A-C) d+B \left (c^2-d^2\right )\right )+b^2 \left (2 c (A-C) d+B \left (c^2-d^2\right )\right )\right ) \tan (e+f x)}{f}+\frac {\left (2 a b (A c-c C-B d)+a^2 (B c+(A-C) d)-b^2 (B c+(A-C) d)\right ) (c+d \tan (e+f x))^2}{2 f}+\frac {\left (a^2 B-b^2 B+2 a b (A-C)\right ) (c+d \tan (e+f x))^3}{3 f}+\frac {\left (5 a^2 C d^2-6 a b d (c C-5 B d)+b^2 \left (c^2 C-3 B c d+15 (A-C) d^2\right )\right ) (c+d \tan (e+f x))^4}{60 d^3 f}-\frac {b (b c C-3 b B d-a C d) \tan (e+f x) (c+d \tan (e+f x))^4}{15 d^2 f}+\frac {C (a+b \tan (e+f x))^2 (c+d \tan (e+f x))^4}{6 d f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 6.41, size = 419, normalized size = 0.69 \begin {gather*} \frac {C (a+b \tan (e+f x))^2 (c+d \tan (e+f x))^4}{6 d f}+\frac {-\frac {2 b (b c C-3 b B d-a C d) \tan (e+f x) (c+d \tan (e+f x))^4}{5 d f}-\frac {-\frac {\left (5 a^2 C d^2-6 a b d (c C-5 B d)+b^2 \left (c^2 C-3 B c d+15 (A-C) d^2\right )\right ) (c+d \tan (e+f x))^4}{2 d f}+\frac {5 \left (3 d \left (2 a b (A c-c C+B d)+a^2 (B c-(A-C) d)-b^2 (B c-(A-C) d)\right ) \left ((i c-d)^3 \log (i-\tan (e+f x))-(i c+d)^3 \log (i+\tan (e+f x))+6 c d^2 \tan (e+f x)+d^3 \tan ^2(e+f x)\right )+\left (a^2 B-b^2 B+2 a b (A-C)\right ) d \left (3 i (c+i d)^4 \log (i-\tan (e+f x))-3 i (c-i d)^4 \log (i+\tan (e+f x))-6 d^2 \left (6 c^2-d^2\right ) \tan (e+f x)-12 c d^3 \tan ^2(e+f x)-2 d^4 \tan ^3(e+f x)\right )\right )}{f}}{5 d}}{6 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(1238\) vs.
\(2(593)=1186\).
time = 0.36, size = 1239, normalized size = 2.05
method | result | size |
norman | \(\left (A \,a^{2} c^{3}-3 A \,a^{2} c \,d^{2}-6 A a b \,c^{2} d +2 A a b \,d^{3}-A \,b^{2} c^{3}+3 A \,b^{2} c \,d^{2}-3 B \,a^{2} c^{2} d +B \,a^{2} d^{3}-2 B a b \,c^{3}+6 B a b c \,d^{2}+3 B \,b^{2} c^{2} d -B \,b^{2} d^{3}-C \,a^{2} c^{3}+3 C \,a^{2} c \,d^{2}+6 C a b \,c^{2} d -2 C a b \,d^{3}+C \,b^{2} c^{3}-3 C \,b^{2} c \,d^{2}\right ) x +\frac {\left (3 A \,a^{2} c \,d^{2}+6 A a b \,c^{2} d -2 A a b \,d^{3}+A \,b^{2} c^{3}-3 A \,b^{2} c \,d^{2}+3 B \,a^{2} c^{2} d -B \,a^{2} d^{3}+2 B a b \,c^{3}-6 B a b c \,d^{2}-3 B \,b^{2} c^{2} d +B \,b^{2} d^{3}+C \,a^{2} c^{3}-3 C \,a^{2} c \,d^{2}-6 C a b \,c^{2} d +2 C a b \,d^{3}-C \,b^{2} c^{3}+3 C \,b^{2} c \,d^{2}\right ) \tan \left (f x +e \right )}{f}+\frac {\left (2 A a b \,d^{3}+3 A \,b^{2} c \,d^{2}+B \,a^{2} d^{3}+6 B a b c \,d^{2}+3 B \,b^{2} c^{2} d -B \,b^{2} d^{3}+3 C \,a^{2} c \,d^{2}+6 C a b \,c^{2} d -2 C a b \,d^{3}+C \,b^{2} c^{3}-3 C \,b^{2} c \,d^{2}\right ) \left (\tan ^{3}\left (f x +e \right )\right )}{3 f}+\frac {\left (A \,a^{2} d^{3}+6 A a b c \,d^{2}+3 A \,b^{2} c^{2} d -A \,b^{2} d^{3}+3 B \,a^{2} c \,d^{2}+6 B a b \,c^{2} d -2 B a b \,d^{3}+B \,b^{2} c^{3}-3 B \,b^{2} c \,d^{2}+3 C \,a^{2} c^{2} d -C \,a^{2} d^{3}+2 C a b \,c^{3}-6 C a b c \,d^{2}-3 C \,b^{2} c^{2} d +C \,b^{2} d^{3}\right ) \left (\tan ^{2}\left (f x +e \right )\right )}{2 f}+\frac {d \left (A \,b^{2} d^{2}+2 B a b \,d^{2}+3 B \,b^{2} c d +a^{2} C \,d^{2}+6 C a b c d +3 C \,b^{2} c^{2}-C \,b^{2} d^{2}\right ) \left (\tan ^{4}\left (f x +e \right )\right )}{4 f}+\frac {C \,b^{2} d^{3} \left (\tan ^{6}\left (f x +e \right )\right )}{6 f}+\frac {b \,d^{2} \left (B b d +2 a C d +3 C b c \right ) \left (\tan ^{5}\left (f x +e \right )\right )}{5 f}+\frac {\left (3 A \,a^{2} c^{2} d -A \,a^{2} d^{3}+2 A a b \,c^{3}-6 A a b c \,d^{2}-3 A \,b^{2} c^{2} d +A \,b^{2} d^{3}+B \,a^{2} c^{3}-3 B \,a^{2} c \,d^{2}-6 B a b \,c^{2} d +2 B a b \,d^{3}-B \,b^{2} c^{3}+3 B \,b^{2} c \,d^{2}-3 C \,a^{2} c^{2} d +C \,a^{2} d^{3}-2 C a b \,c^{3}+6 C a b c \,d^{2}+3 C \,b^{2} c^{2} d -C \,b^{2} d^{3}\right ) \ln \left (1+\tan ^{2}\left (f x +e \right )\right )}{2 f}\) | \(896\) |
derivativedivides | \(\text {Expression too large to display}\) | \(1239\) |
default | \(\text {Expression too large to display}\) | \(1239\) |
risch | \(\text {Expression too large to display}\) | \(4231\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.52, size = 688, normalized size = 1.14 \begin {gather*} \frac {10 \, C b^{2} d^{3} \tan \left (f x + e\right )^{6} + 12 \, {\left (3 \, C b^{2} c d^{2} + {\left (2 \, C a b + B b^{2}\right )} d^{3}\right )} \tan \left (f x + e\right )^{5} + 15 \, {\left (3 \, C b^{2} c^{2} d + 3 \, {\left (2 \, C a b + B b^{2}\right )} c d^{2} + {\left (C a^{2} + 2 \, B a b + {\left (A - C\right )} b^{2}\right )} d^{3}\right )} \tan \left (f x + e\right )^{4} + 20 \, {\left (C b^{2} c^{3} + 3 \, {\left (2 \, C a b + B b^{2}\right )} c^{2} d + 3 \, {\left (C a^{2} + 2 \, B a b + {\left (A - C\right )} b^{2}\right )} c d^{2} + {\left (B a^{2} + 2 \, {\left (A - C\right )} a b - B b^{2}\right )} d^{3}\right )} \tan \left (f x + e\right )^{3} + 30 \, {\left ({\left (2 \, C a b + B b^{2}\right )} c^{3} + 3 \, {\left (C a^{2} + 2 \, B a b + {\left (A - C\right )} b^{2}\right )} c^{2} d + 3 \, {\left (B a^{2} + 2 \, {\left (A - C\right )} a b - B b^{2}\right )} c d^{2} + {\left ({\left (A - C\right )} a^{2} - 2 \, B a b - {\left (A - C\right )} b^{2}\right )} d^{3}\right )} \tan \left (f x + e\right )^{2} + 60 \, {\left ({\left ({\left (A - C\right )} a^{2} - 2 \, B a b - {\left (A - C\right )} b^{2}\right )} c^{3} - 3 \, {\left (B a^{2} + 2 \, {\left (A - C\right )} a b - B b^{2}\right )} c^{2} d - 3 \, {\left ({\left (A - C\right )} a^{2} - 2 \, B a b - {\left (A - C\right )} b^{2}\right )} c d^{2} + {\left (B a^{2} + 2 \, {\left (A - C\right )} a b - B b^{2}\right )} d^{3}\right )} {\left (f x + e\right )} + 30 \, {\left ({\left (B a^{2} + 2 \, {\left (A - C\right )} a b - B b^{2}\right )} c^{3} + 3 \, {\left ({\left (A - C\right )} a^{2} - 2 \, B a b - {\left (A - C\right )} b^{2}\right )} c^{2} d - 3 \, {\left (B a^{2} + 2 \, {\left (A - C\right )} a b - B b^{2}\right )} c d^{2} - {\left ({\left (A - C\right )} a^{2} - 2 \, B a b - {\left (A - C\right )} b^{2}\right )} d^{3}\right )} \log \left (\tan \left (f x + e\right )^{2} + 1\right ) + 60 \, {\left ({\left (C a^{2} + 2 \, B a b + {\left (A - C\right )} b^{2}\right )} c^{3} + 3 \, {\left (B a^{2} + 2 \, {\left (A - C\right )} a b - B b^{2}\right )} c^{2} d + 3 \, {\left ({\left (A - C\right )} a^{2} - 2 \, B a b - {\left (A - C\right )} b^{2}\right )} c d^{2} - {\left (B a^{2} + 2 \, {\left (A - C\right )} a b - B b^{2}\right )} d^{3}\right )} \tan \left (f x + e\right )}{60 \, f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.45, size = 686, normalized size = 1.14 \begin {gather*} \frac {10 \, C b^{2} d^{3} \tan \left (f x + e\right )^{6} + 12 \, {\left (3 \, C b^{2} c d^{2} + {\left (2 \, C a b + B b^{2}\right )} d^{3}\right )} \tan \left (f x + e\right )^{5} + 15 \, {\left (3 \, C b^{2} c^{2} d + 3 \, {\left (2 \, C a b + B b^{2}\right )} c d^{2} + {\left (C a^{2} + 2 \, B a b + {\left (A - C\right )} b^{2}\right )} d^{3}\right )} \tan \left (f x + e\right )^{4} + 20 \, {\left (C b^{2} c^{3} + 3 \, {\left (2 \, C a b + B b^{2}\right )} c^{2} d + 3 \, {\left (C a^{2} + 2 \, B a b + {\left (A - C\right )} b^{2}\right )} c d^{2} + {\left (B a^{2} + 2 \, {\left (A - C\right )} a b - B b^{2}\right )} d^{3}\right )} \tan \left (f x + e\right )^{3} + 60 \, {\left ({\left ({\left (A - C\right )} a^{2} - 2 \, B a b - {\left (A - C\right )} b^{2}\right )} c^{3} - 3 \, {\left (B a^{2} + 2 \, {\left (A - C\right )} a b - B b^{2}\right )} c^{2} d - 3 \, {\left ({\left (A - C\right )} a^{2} - 2 \, B a b - {\left (A - C\right )} b^{2}\right )} c d^{2} + {\left (B a^{2} + 2 \, {\left (A - C\right )} a b - B b^{2}\right )} d^{3}\right )} f x + 30 \, {\left ({\left (2 \, C a b + B b^{2}\right )} c^{3} + 3 \, {\left (C a^{2} + 2 \, B a b + {\left (A - C\right )} b^{2}\right )} c^{2} d + 3 \, {\left (B a^{2} + 2 \, {\left (A - C\right )} a b - B b^{2}\right )} c d^{2} + {\left ({\left (A - C\right )} a^{2} - 2 \, B a b - {\left (A - C\right )} b^{2}\right )} d^{3}\right )} \tan \left (f x + e\right )^{2} - 30 \, {\left ({\left (B a^{2} + 2 \, {\left (A - C\right )} a b - B b^{2}\right )} c^{3} + 3 \, {\left ({\left (A - C\right )} a^{2} - 2 \, B a b - {\left (A - C\right )} b^{2}\right )} c^{2} d - 3 \, {\left (B a^{2} + 2 \, {\left (A - C\right )} a b - B b^{2}\right )} c d^{2} - {\left ({\left (A - C\right )} a^{2} - 2 \, B a b - {\left (A - C\right )} b^{2}\right )} d^{3}\right )} \log \left (\frac {1}{\tan \left (f x + e\right )^{2} + 1}\right ) + 60 \, {\left ({\left (C a^{2} + 2 \, B a b + {\left (A - C\right )} b^{2}\right )} c^{3} + 3 \, {\left (B a^{2} + 2 \, {\left (A - C\right )} a b - B b^{2}\right )} c^{2} d + 3 \, {\left ({\left (A - C\right )} a^{2} - 2 \, B a b - {\left (A - C\right )} b^{2}\right )} c d^{2} - {\left (B a^{2} + 2 \, {\left (A - C\right )} a b - B b^{2}\right )} d^{3}\right )} \tan \left (f x + e\right )}{60 \, f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 1819 vs.
\(2 (547) = 1094\).
time = 0.49, size = 1819, normalized size = 3.02 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 24014 vs.
\(2 (602) = 1204\).
time = 20.71, size = 24014, normalized size = 39.82 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 9.31, size = 891, normalized size = 1.48 \begin {gather*} x\,\left (A\,a^2\,c^3-A\,b^2\,c^3+B\,a^2\,d^3-C\,a^2\,c^3-B\,b^2\,d^3+C\,b^2\,c^3+2\,A\,a\,b\,d^3-2\,B\,a\,b\,c^3-2\,C\,a\,b\,d^3-3\,A\,a^2\,c\,d^2+3\,A\,b^2\,c\,d^2-3\,B\,a^2\,c^2\,d+3\,B\,b^2\,c^2\,d+3\,C\,a^2\,c\,d^2-3\,C\,b^2\,c\,d^2-6\,A\,a\,b\,c^2\,d+6\,B\,a\,b\,c\,d^2+6\,C\,a\,b\,c^2\,d\right )-\frac {\mathrm {tan}\left (e+f\,x\right )\,\left (B\,a^2\,d^3-A\,b^2\,c^3-b\,d^2\,\left (B\,b\,d+2\,C\,a\,d+3\,C\,b\,c\right )-C\,a^2\,c^3+C\,b^2\,c^3+2\,A\,a\,b\,d^3-2\,B\,a\,b\,c^3-3\,A\,a^2\,c\,d^2+3\,A\,b^2\,c\,d^2-3\,B\,a^2\,c^2\,d+3\,B\,b^2\,c^2\,d+3\,C\,a^2\,c\,d^2-6\,A\,a\,b\,c^2\,d+6\,B\,a\,b\,c\,d^2+6\,C\,a\,b\,c^2\,d\right )}{f}-\frac {\ln \left ({\mathrm {tan}\left (e+f\,x\right )}^2+1\right )\,\left (\frac {A\,a^2\,d^3}{2}-\frac {B\,a^2\,c^3}{2}-\frac {A\,b^2\,d^3}{2}+\frac {B\,b^2\,c^3}{2}-\frac {C\,a^2\,d^3}{2}+\frac {C\,b^2\,d^3}{2}-A\,a\,b\,c^3-B\,a\,b\,d^3+C\,a\,b\,c^3-\frac {3\,A\,a^2\,c^2\,d}{2}+\frac {3\,A\,b^2\,c^2\,d}{2}+\frac {3\,B\,a^2\,c\,d^2}{2}-\frac {3\,B\,b^2\,c\,d^2}{2}+\frac {3\,C\,a^2\,c^2\,d}{2}-\frac {3\,C\,b^2\,c^2\,d}{2}+3\,A\,a\,b\,c\,d^2+3\,B\,a\,b\,c^2\,d-3\,C\,a\,b\,c\,d^2\right )}{f}+\frac {{\mathrm {tan}\left (e+f\,x\right )}^4\,\left (\frac {A\,b^2\,d^3}{4}+\frac {C\,a^2\,d^3}{4}-\frac {C\,b^2\,d^3}{4}+\frac {B\,a\,b\,d^3}{2}+\frac {3\,B\,b^2\,c\,d^2}{4}+\frac {3\,C\,b^2\,c^2\,d}{4}+\frac {3\,C\,a\,b\,c\,d^2}{2}\right )}{f}+\frac {{\mathrm {tan}\left (e+f\,x\right )}^3\,\left (\frac {B\,a^2\,d^3}{3}-\frac {b\,d^2\,\left (B\,b\,d+2\,C\,a\,d+3\,C\,b\,c\right )}{3}+\frac {C\,b^2\,c^3}{3}+\frac {2\,A\,a\,b\,d^3}{3}+A\,b^2\,c\,d^2+B\,b^2\,c^2\,d+C\,a^2\,c\,d^2+2\,B\,a\,b\,c\,d^2+2\,C\,a\,b\,c^2\,d\right )}{f}+\frac {{\mathrm {tan}\left (e+f\,x\right )}^2\,\left (\frac {A\,a^2\,d^3}{2}-\frac {A\,b^2\,d^3}{2}+\frac {B\,b^2\,c^3}{2}-\frac {C\,a^2\,d^3}{2}+\frac {C\,b^2\,d^3}{2}-B\,a\,b\,d^3+C\,a\,b\,c^3+\frac {3\,A\,b^2\,c^2\,d}{2}+\frac {3\,B\,a^2\,c\,d^2}{2}-\frac {3\,B\,b^2\,c\,d^2}{2}+\frac {3\,C\,a^2\,c^2\,d}{2}-\frac {3\,C\,b^2\,c^2\,d}{2}+3\,A\,a\,b\,c\,d^2+3\,B\,a\,b\,c^2\,d-3\,C\,a\,b\,c\,d^2\right )}{f}+\frac {b\,d^2\,{\mathrm {tan}\left (e+f\,x\right )}^5\,\left (B\,b\,d+2\,C\,a\,d+3\,C\,b\,c\right )}{5\,f}+\frac {C\,b^2\,d^3\,{\mathrm {tan}\left (e+f\,x\right )}^6}{6\,f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________